package com.wechat;

public class WeChatUrlConstants {
    public static final String BASE_URL = "https://qyapi.weixin.qq.com/cgi-bin/";
    /**
     * AccessToken
     */
    public static final String ACCESS_TOKEN_URL = BASE_URL + "gettoken?corpid=%s&corpsecret=%s";

    /**
     * 员工相关
     */
    //获取部门员工详情
    public static final String STAFF_LIST_URL = BASE_URL + "user/list?access_token=%s&department_id=%s";
    //获取所有部门
    public static final String DEPARTMENT_URL = BASE_URL + "department/list?access_token=%s";
    //获取员工详情
    public static final String STAFF_DETAIL_URL = BASE_URL + "user/get?access_token=%s&userid=%s";

    /**
     * 客户联系
     */
    //获取客户列表 https://open.work.weixin.qq.com/api/doc/90000/90135/92113
    public static final String EXT_CONTACT_LIST_URL = BASE_URL +"externalcontact/list?access_token=%s&userid=%s";
    //获取客户详情 https://open.work.weixin.qq.com/api/doc/90000/90135/92114
    public static final String EXT_CONTACT_DETAIL_URL = BASE_URL +"/externalcontact/get?access_token=%s&external_userid=%s&cursor=%s";
    //批量获取客户详情
    public static final String BATCH_EXT_CONTACT_DETAIL_URL = BASE_URL + "externalcontact/batch/get_by_user?access_token=%s";

    /**
     * 群组
     */
    public static final String EXT_CONTACT_GROUP_CHAT_LIST_URL = BASE_URL + "externalcontact/groupchat/list?access_token=%s";
    //获取客户群信息
    public static final String GROUP_CHAT_URL = BASE_URL + "externalcontact/groupchat/get?access_token=%s";
    public static final String INNER_GROUP_URL = BASE_URL + "msgaudit/groupchat/get?access_token=%s";


    /**
     * 消息推送
     */
    //发送消息
    public static final String MESSAGE_SEND_URL = BASE_URL + "externalcontact/add_msg_template?access_token=%s";
    //推送结果
    public static final String MESSAGE_SEND_RESULT_URL = BASE_URL + "externalcontact/get_groupmsg_send_result?access_token=%s";
}
